<?php
	#debug($icons);
	$iconpath = Configure::read('Path.Icon').$user['Icon']['name'].'.'.$user['Icon']['ext'];
	$selects = array();
	foreach($icons as $icon){
		$selects[$icon['Icon']['id']] = hq($icon['Icon']['name']).$html->image(Configure::read('Path.Icon').$icon['Icon']['name'].'.'.$icon['Icon']['ext'], array('alt' => $icon['Icon']['name']));
	}
?><div id="maincontent">
<p>
<?php p($user['User']['nickname']);?> さん
</p>
<?php echo $form->create('Profile', array('action' => 'changeicon'));?>
<fieldset>
<legend>アイコン変更</legend>
<p>
現在のアイコン : <?php p($user['Icon']['name']);?><br />
<?php echo $html->image($iconpath);?>
</p>
<p>この中から一つ選択してください</p>
<?php echo $form->radio('iconid', $selects, array('legend' => false, 'separator' => ' '));?>
</fieldset>
<p>
<?php echo $form->end(array('label' => '変更する'));?>
</p>

<?php
if($error){
?>
<p>
エラー
<?php echo $html->nestedList($errorMsg);?>
</p>
<?php
}
?>

</div> <!-- end maincontent -->
<div id="sidecontent">

 Icons by <a href="http://www.fasticon.com/">FastIcon.com</a>, <a href="http://www.iconshock.com/">Iconshock.com</a>
 
<div id="nullblock"></div>

</div> <!-- end sidecontent -->